<h2>View customer</h2>
<%= link_to image_tag("back-icon.png", :border => 0) , customers_path , {:class => 'form-command'}%>
<% if can? :update, Customer %>
<%= link_to image_tag("edit-icon.png", :border => 0) , edit_customer_path(@customer) , {:class => 'form-command'} %>
<% end %>
<%= render 'form' %>
<%= link_to image_tag("back-icon.png", :border => 0) , customers_path , {:class => 'form-command'}%>
<% if can? :update, Customer %>
<%= link_to image_tag("edit-icon.png", :border => 0) , edit_customer_path(@customer) , {:class => 'form-command'} %>
<% end %> 